using MicroMsg.Common.Event;
using System;
namespace MicroMsg.Storage
{
	public class ConversationStorage : StorageMemory<Conversation, string>
	{
		public ConversationStorage() : base((Conversation c) => c.strUsrName)
		{
		}
		public bool method_5(string userName)
		{
			if (string.IsNullOrEmpty(userName))
			{
				return false;
			}
			Conversation item = base.method_0(userName);
			return base.method_2(item);
		}
		public void clearAll()
		{
			base.clear(true);
		}
		public override void notify(int operation, Conversation item)
		{
			EventCenter.postCombineEvent(EventConst.ON_STORAGE_CONVERSATION_ADD + operation, item);
		}
	}
}
